package entity

type Category struct {
	Id           int    `gorm:"primaryKey;column=id" json:"id"`
	Account      string `gorm:"column=account" json:"account"`
	CreateTime   int64  `gorm:"column=create_time" json:"createTime"`
	Description  string `gorm:"column=description" json:"description"`
	CategoryName string `gorm:"column=category_Name" json:"categoryName"`
	IsDeleted    int    `gorm:"column=is_deleted" json:"isDeleted"`
	User         *User  `gorm:"-" json:"user,omitempty"`
}

func (c *Category) TableName() string {
	return "category"
}
